/*
 * @Descripttion: 会话接口
 * @version: 
 * @Author: 
 * @Date: 2022-05-05 15:13:51
 * @LastEditors: weidelong
 * @LastEditTime: 2022-05-05 16:43:58
 */
import request from "../../request.js"

// 存储与用户的聊天记录内容
export function saveUserMsg(params) {
    return request({
        url: '/saveUserMsg',
        method: 'post',
        data: params
    })
}

// 读取与用户的聊天记录内容
export function getUserMsg(paramater) {
    return request({
        url: '/searchUserMsg',
        method: 'get',
        params: paramater
    })
}

// 存储与医师的聊天记录内容
export function saveDoctorMsg(params) {
    return request({
        url: '/saveDoctorMsg',
        method: 'post',
        data: params
    })
}

// 读取与医师的聊天记录内容
export function getDoctorMsg(paramater) {
    return request({
        url: '/searchDoctorMsg',
        method: 'get',
        params: paramater
    })
}